<?php
$trip = new Trip();
$a = $trip->getTripPrepare();
$b = sizeof($a);
 $pos =0;
echo '<div  id="thongtin" style= "width :100%">';
echo '<div style= "width :33%;float :left">Chuyến đi</div>';
echo '<div style= "width :33%;float :left">Thời gian</div>';
echo '<div style= "width :33%;float :left">Số xe</div>';
echo '</div>';


foreach ($a as $key => $value){
	echo '<div id="prepare'.$pos.'" style="display :none;position: relative;margin-top :30px;" >';
	echo '<div style= "width :33%;float :left">'.$value['pointstart'].'-'.$value['pointend'].'</div>';
	echo '<div style= "width :33%;float :left">'.$value['starttime'].'</div>';
	echo '<div style= "width :33%;float :left">'.$value['numberplate'].'</div>';
	echo '<div style="position: absolute;top :75px; left:90px;"><img src="'.Config::BASEURL.'layout/default/image/left.png" onclick="Downtrip('.$pos.','.$b.')">';
	echo '<img src="'.Config::BASEURL.'layout/default/image/right.png" onclick="Uptrip('.$pos.','.$b.')"></div>';
	echo '</div>';
	$pos++;
}


